package com.wali.modules.usr.dao;

import com.wali.modules.usr.vo.UsrSenderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author walixu
 * @ClassName com.wali.modules.common.dao
 * @Description 发件人信息dao接口
 * @email wali.xu@kpmg.com
 * @date 19/01/2019 2:14 下午
 */
@Mapper
public interface IUsrSenderDao {

    /**
     * @param usrSender
     * @return
     * @throws
     * @Title saveUsrSender
     * @Description 新增发件人信息
     */
    int saveUsrSender(@Param("usrSender") UsrSenderVO usrSender);

    /**
     * @param usrSender
     * @return
     * @throws
     * @Title getUsrSender
     * @Description 查询符合条件的单条发件人信息
     */
    UsrSenderVO getUsrSender(@Param("usrSender") UsrSenderVO usrSender);

    /**
     * @param usrSender
     * @return
     * @throws
     * @Title updateUsrSender
     * @Description 更新发件人信息
     */
    int updateUsrSender(@Param("usrSender") UsrSenderVO usrSender);

    /**
     * @param usrSender
     * @return
     * @throws
     * @Title deleteUsrSender
     * @Description 删除发件人信息
     */
    int deleteUsrSender(@Param("usrSender") UsrSenderVO usrSender);

    /**
     * @param usrSender
     * @return 发件人列表
     * @throws
     * @Title listUsrSender
     * @Description 查询所有符合条件的发件人信息
     */
    List<UsrSenderVO> listUsrSender(@Param("usrSender") UsrSenderVO usrSender);

    /**
     * @param usrSender
     * @return
     * @throws
     * @Title countUsrSender
     * @Description 统计符合条件的发件人数量
     */
    int countUsrSender(@Param("usrSender") UsrSenderVO usrSender);
}
